﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage_Content.master" AutoEventWireup="true"
    CodeFile="newslist.aspx.cs" Inherits="newslist" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Search" runat="Server">
    <meta name="Keywords" content="<%= WebSideConfig.Keywords %>" />
    <meta name="Description" content="<%= WebSideConfig.Description %>" />
    <title>新闻列表 - <%= WebSideConfig.WebSideName %></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Position" runat="Server">
    <span>新闻动态</span>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentTitle" runat="Server">
    <%=GetLeftWebnav.Title %>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Content" runat="Server">
    <div class="ui-page-list">
        <ul>
            <% for (int i = 0; i < dt_list.Rows.Count; i++)
               { %>
            <li><a href='<%=GetNewsDetailUrl( dt_list.Rows[i]["NewsType"].ToString(),Convert.ToInt32(dt_list.Rows[i]["NewsId"]))%>'>
                <%= dt_list.Rows[i]["Title"].ToString()%></a> 
                <span><%= SetShortDateTime(dt_list.Rows[i]["ReleaseDate"].ToString()) %></span>
            </li>
            <%} %>
        </ul>
    </div>
    <%--<div class="Pagination">
        <%=PageIndex > 1 ? "<a href='newslist.aspx?p=1'>首页</a>" : "<span style='color:#666666'>首页</span>"%>
        <%=PageIndex > 1 ? "<a href='newslist.aspx?p=" + (PageIndex - 1).ToString() + "'>上一页</a>" : "<span style='color:#666666'>上一页</span>"%>
        <%for (int i = 1; i <= PageCount; i++)
          { %>
        <%if (i == PageIndex)
          { %>
        <b>
            <%=i.ToString()%></b>
        <%}
          else
          {%>
        <a href="newslist.aspx?p=<%=i.ToString() %>">
            <%=i.ToString()%></a>
        <%} %>
        <%} %>
        <%=PageIndex < PageCount ? "<a href='newslist.aspx?p=" + (PageIndex + 1).ToString() + "'>下一页</a>" : "<span style='color:#666666'>下一页</span>"%>
        <%=PageIndex < PageCount ? "<a href='newslist.aspx?p=" + (PageCount).ToString() + "'>尾页</a>" : "<span style='color:#666666'>尾页</span>"%>
    </div>--%>
</asp:Content>
